package com.ynhenc.pta.routeRank.impl;

import com.ynhenc.pta.routeRank.*;

import java.io.*;

public class RouteRankImpl_ScenarioPta extends RouteRankImpl {

	public RouteRankImpl_ScenarioPta(RouteRequest routeRequest) {
		super(routeRequest);
	}
	
	public String getCode()  {
		return "PTA";
	}

	public RouteResultImpl getRouteResult_Shortest(RouteRequest routeRequest) throws Exception {
		RouteSearchType routeSearchType = RouteSearchType.SHORTEST;

		StartEndNodeList seNodeList = this.getScenario().getStartEndNodeList_01_Shortest(routeRequest);

		return this.getRouteResult(routeRequest, routeSearchType, seNodeList);
	}

	public RouteResultImpl getRouteResult_Green_01(RouteRequest routeRequest) throws Exception {
		RouteSearchType routeSearchType = RouteSearchType.GREEN_01;

		StartEndNodeList seNodeList = this.getScenario().getStartEndNodeList_02_Green_01(routeRequest);

		return this.getRouteResult(routeRequest, routeSearchType, seNodeList);
	}

	public RouteResultImpl getRouteResult_Green_02(RouteRequest routeRequest) throws Exception {
		RouteSearchType routeSearchType = RouteSearchType.GREEN_02;

		StartEndNodeList seNodeList = this.getScenario().getStartEndNodeList_03_Green_02(routeRequest);

		return this.getRouteResult(routeRequest, routeSearchType, seNodeList);
	}
}
